﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNetExtensions.AspNet.SQLites
{
    public class CommandText
    {
        public CommandText(string text, Dictionary<string, object> parameters)
        {
            Text = text;
            Parameters = parameters;
        }
        public string Text { get; set; }
        public Dictionary<string, object> Parameters { get; set; }

        public void Add(string key, object value)
        {
            if (Parameters == null) return;

            if (Parameters.ContainsKey(key)) Parameters[key] = value;
            else
            {
                Parameters.Add(key, value);
            }
        }
    }
}
